package mycoffee.order.model;

public class Food extends ExRoot {
	/**
	 * 
	 */
	private static final String DrinkID = "Bartenders";
	private static final String FoodID = "Cookers";
	private static final long serialVersionUID = 1L;
	private double mPrice;
	private String mStatus;
	private String mImage;
	private int mParentID;
	private String mDvt;
	private int mSubcategoryID;
	private String mDepartment;

	/**
	 * Constructor with no input parameter
	 */
	public Food() {
		super();
		this.mPrice = 1.0;
		this.mStatus = "";
		this.mImage = "";
		this.mParentID = 1;
		this.mDvt = "";
		this.mSubcategoryID = 1;
	}

	public Food(Food food) {
		super(food);
		this.mPrice = food.getPrice();
		this.mStatus = food.getStatus();
		this.mImage = food.getImage();
		this.mParentID = food.getParentID();
		this.mDvt = food.getDvt();
		this.mSubcategoryID = food.getSubcategoryID();
		this.mDepartment = food.getDepartment();
	}

	public double getPrice() {
		return mPrice;
	}

	public void setPrice(double price) {
		mPrice = price;
	}

	public String getStatus() {
		return mStatus;
	}

	public void setStatus(String status) {
		mStatus = status;
	}

	public String getImage() {
		return mImage;
	}

	public void setImage(String image) {
		mImage = image;
	}

	public int getParentID() {
		return mParentID;
	}

	public void setParentID(int parentID) {
		mParentID = parentID;
	}

	public String getDvt() {
		return mDvt;
	}

	public void setDvt(String dvt) {
		mDvt = dvt;
	}

	public int getSubcategoryID() {
		return mSubcategoryID;
	}

	public void setSubcategoryID(int subcategoryID) {
		mSubcategoryID = subcategoryID;
	}

	public String getDepartment() {
		return this.mDepartment;
	}

	public void setDepartment(String department) {
		this.mDepartment = department;
	}

	public boolean isDrink() {
		return this.mDepartment.equalsIgnoreCase(DrinkID);
	}
	
	public boolean isFood() {
		return this.mDepartment.equalsIgnoreCase(FoodID);
	}
}
